package com.lyj.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
@TableName("device")
public class Device {
    @TableId(type = IdType.AUTO)
    @TableField("device_id")
    private Integer deviceId;

    @TableField("family_id")
    private Integer familyId;

    @TableField("device_name")
    private String deviceName;

    @TableField("is_online")
    private Integer isOnline; // 0-离线，1-在线

    // 新增开关状态字段
    @TableField("power_status")
    private Integer powerStatus; // 0-关，1-开
}